<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>登录页面</title>
    <script type="text/javascript" src="js/jquery-3.3.1.min.js" ></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .input{
            border: 1px solid #ccc;
            border-radius: 2px;
            color: #000;
            font-family: 'Opan Sans',sans-serif;
            font-size: 1.2em;
            height: 50px;
            padding: 0 16px;
            transition: background 0.3s ease-in-out;
            width: 292px;
            margin-bottom: 8px;
        }
        input:focus {
            outline: none;
            border-color: #9ecaed;
            box-shadow: 0 0 10px #9ecaed;
        }
        .button {
            height: 50px;
            width: 292px;
            background: #009dff;
            border: none;
            border-radius: 2px;
            color: #fff;
            cursor: pointer;
            font-family: 'Open Sans', sans-serif;
            font-size: 1.2em;
            letter-spacing: 0.1em;
            text-align: center;
            transition: background 0.3s ease-in-out;
        }
        .button:hover {
            background: #00c8ff;
        }
        .page{
            padding-left: 150px;
            padding-right: 150px;
        }
        .page_top{
            display: flex;
        }
        .logo{
            height: 60px;
            width: 250px;
        }
        .page_bottom{
            display: flex;
            height: 450px;
            margin-top: 50px;
            margin-bottom: 50px;
            border: solid 6px #EAE4E4;
        }
        .bottom_left{
            width: 50%;
        }
        .bottom_right{
            margin-left: 120px;
            margin-top: 40px;
        }
        #img{
            border: 1px solid gray;
            width: 160px;
            height:60px;
            display: flex;
            margin-top: 10px;
            margin-bottom: 10px;
        }
    </style>

</head>
<body>

<div class="page">
    <div class="page_top" style="margin-top: 40px;">
        <div style="margin-left: 100px;">
            <img class="logo" src="img/logo.png"/>
        </div>
        <div style="font-size: 32px;margin-left: 50px;border-left: solid 1px gainsboro;line-height: 60px;padding-left: 50px;">欢迎登录</div>
    </div>
    <div class="page_bottom">
        <div class="bottom_left">
            <img style="width: 450px;height: 450px;position: absolute;left: 210px;top: 120px;" src="img/bg4.png" />
        </div>
        <div>
            <div class="bottom_right">
                <form action="login" method="post">
                    <input class="input" type="text" name="phonenumber" placeholder="请输入手机号"><br>
                    <input class="input" type="password" name="password" placeholder="请输入登录密码"><br>
                    <input class="input" type="text" name="code" placeholder="请输入验证码"><br>
                    <script type="text/javascript">
                        function changeImage() {
                            var im = document.getElementById("img");
                            im.src="checkCode?m="+Math.random();
                        }
                    </script>
                    <img id='img' src="checkCode" onclick='changeImage()'>
                    <input class="button" type="submit" value="登录">
                </form>
                <span style="color: red">${msg}</span>
                <div style="width: 100%;text-align: center">
                    <a href="register">立即注册</a>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
</html>
